from person import Person
class Teacher(Person):
    def __init__(self,name,age,sex,course,salary):
        Person.__init__(self,name,age,sex)
        self.course=course
        self.salary=salary
    def setCourse(self,course):
        self.course=course
    def getCourse(self):
        return self.course
    def setSalary(self,salary):
        self.salary=salary
    def getSalary(self):
        return self.salary
    def show(self):
        return(Person.show(self)+(',course:{0},salary:{1}'.format(self.course,self.salary)))

a = input('请输入名字:')
b = input('请输入年龄:')
c = input('请输入性别:')
d = input('请输入课程:')
e = input('请输入薪水:')
f1=Teacher(a,b,c,d,e)
print(f1.show())